package com.ycl.service.impl;

import com.ycl.mapper.EbProductCategoryMapper;
import com.ycl.model.EbProductCategory;
import com.ycl.service.ProductClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductClassServiceImpl implements ProductClassService {
    @Autowired
    private EbProductCategoryMapper ebProductCategoryMapper;

    /**
     * 所有大类实现类
     * @return
     */
    @Override
    public List<EbProductCategory> bigList(){
        List<EbProductCategory> bigCategory = ebProductCategoryMapper.selectBigCategory();
        return  bigCategory;
    }

    @Override
    public List<EbProductCategory> smallList(){
        List<EbProductCategory> smallCategory = ebProductCategoryMapper.selectSmallCategory();
        return  smallCategory;
    }
}
